From 583731dce8006ab42a54e8d0d8015d52c2f20e66 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 6 Jul 2009 11:55:17 +0100 Subject: [PATCH] 32on64: increase size of compat argument translation area to 2 pages. The existing single page is not quite large enough to translate a XENMEM_exchange hypercall with order=3D9. Since Linux uses MAX_CONTIG_ORDER of 9 this seems like a reasonable upper bound to support. Signed-off-by: Ian Campbell --- xen/include/asm-x86/x86_64/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-x86/x86_64/uaccess.h b/xen/include/asm-x86/x86_64/uaccess.h index f76be30d3e..40f5e4210d 100644 --- a/xen/include/asm-x86/x86_64/uaccess.h +++ b/xen/include/asm-x86/x86_64/uaccess.h @@ -2,7 +2,7 @@ #define __X86_64_UACCESS_H #define COMPAT_ARG_XLAT_VIRT_BASE this_cpu(compat_arg_xlat) -#define COMPAT_ARG_XLAT_SIZE PAGE_SIZE +#define COMPAT_ARG_XLAT_SIZE (2*PAGE_SIZE) DECLARE_PER_CPU(void *, compat_arg_xlat); int setup_compat_arg_xlat(unsigned int cpu, int node); #define is_compat_arg_xlat_range(addr, size) ({ \ -- 2.30.2